using Godot;
using Godot.Collections;

[GlobalClass]
public partial class ChessRegistry : Resource
{
    [Export]
    public Array<ChessTeam> teams;

    public Texture2D GetChessTexture(ChessType type, int team) => teams[team < teams.Count ? team : 0][type];
}